import request from "@/utils/request";

export function offline_index(params) {
  return request({
    url: "/offline/index",
    method: "get",
    params
  });
}

export function offline_info(params) {
  return request({
    url: "/offline/info",
    method: "get",
    params
  });
}

export function offline_account(data) {
  return request({
    url: "/offline/account",
    method: "post",
    data: data
  });
}
export function offline_getList(params) {
  return request({
    url: "/offline/getList",
    method: "get",
    params
  });
}
export function offline_paid(data) {
  return request({
    url: "/offline/paid",
    method: "post",
    data: data
  });
}

// 货到付款结算单
export function offlineSettle_index(params) {
  return request({
    url: "/offlineSettle/index",
    method: "get",
    params
  });
}
export function offlineSettle_info(params) {
  return request({
    url: "/offlineSettle/info",
    method: "get",
    params
  });
}
export function offlineSettle_getList(params) {
  return request({
    url: "/offlineSettle/getList",
    method: "get",
    params
  });
}

// 货到付款总账
export function offline_generalLedger(params) {
  return request({
    url: "/offline/generalLedger",
    method: "get",
    params
  });
}

// 货到付款账单详情导出 ---- 订单
export function export_offline_info_order(data) {
  return request({
    url: "/export/export_offline_info_order",
    method: "post",
    responseType: "blob",
    data: data
  });
}
// 货到付款账单详情导出 ---- 退货单
export function export_offline_info(data) {
  return request({
    url: "/export/export_offline_info",
    method: "post",
    responseType: "blob",
    data: data
  });
}
// 货到付款结算单列表导出----列表
export function export_offlineSettle_list(data) {
  return request({
    url: "/export/export_offlineSettle_list",
    method: "post",
    responseType: "blob",
    data: data
  });
}

// 货到付款结算单导出----详情
export function export_offlineSettle_info(data) {
  return request({
    url: "/export/export_offlineSettle_info",
    method: "post",
    responseType: "blob",
    data: data
  });
}

//货到付款总账---导出
export function export_generalLedger_list(data) {
  return request({
    url: "/export/export_generalLedger_list",
    method: "post",
    responseType: "blob",
    data: data
  });
}

//货到付款结算单----结算明细
export function export_offlineSettle_getList(data) {
  return request({
    url: "/export/export_offlineSettle_getList",
    method: "post",
    responseType: "blob",
    data: data
  });
}

// 货到付款账单列表导出

export function export_offline(data) {
  return request({
    url: "/export/export_offline",
    method: "post",
    responseType: "blob",
    data: data
  });
}
